import { ColumnProps } from "/@/components/ProTable/interface";
import { genderType, userLocked } from "/@/utils/serviceDict";

// 配置项
const columns = (renderHeader: any): Partial<ColumnProps>[] => {
    return [{
            type: "selection",
            width: 60,
            fixed: "left"
        },
        {
            type: "index",
            label: "#",
            width: 60
        },
        {
            prop: "name",
            label: "参数名称",
            search: true,
            width: 140,
        },
        {
            prop: "code",
            label: "参数键",
            width: 280,
            search: true,
        },
        {
            prop: "value",
            label: "参数值",
            width: 280,
            search: true,
        },
        {
            prop: "dataStatus",
            label: "状态",
            search: true,
            enum:[{'label': '启用', value: 1}, {'label': '停用', value: 0}],
            searchType: "select",
            width: 200,
        },
        {
            prop: "remark",
            label: "备注",
        },
        {
            prop: "operation",
            label: "操作",
            width: 330,
            fixed: "right"
        }
    ]
}

export default columns;